package com.cy.teducommunitys.com.cy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;

/**
 * BaseServiceImpl的接口，定义基本的CRUD方法
 * @param <T>
 */
public interface IBaseService<T> extends IService<T> {
    IPage<T> findAllObjects(Page<T> page, HashMap<String,Object> map);
    T findObjectById(Integer id);
    int saveObject(T entity,Integer id);
    int deleteObject(Integer id);
}
